<?php
namespace App\Controller\Admin;

use App\Query\ConfigQuery;
use App\Repository\ConfigRepository;

class ConfigController extends Controller
{
    // 系统配置
    public function index()
    {
        return ConfigQuery::all();
    }
    
    // 更新配置
    public function update()
    {
        ConfigRepository::make()->update($this->request->all());
        
        $this->message('update');
    }
}
